 /* 
 * File:   cSceneManager.cpp
 * Author: josep
 * 
 * Created on 11 / desembre / 2010, 02:51
 */

#include <list>

#include "cSceneManager.h"

cSceneManager::cSceneManager() {
}

cSceneManager::cSceneManager(const cSceneManager& orig) {
}

cSceneManager::~cSceneManager() {
}

void cSceneManager::Draw(){
    for(list<cScene*>::iterator it = this->begin(); it!=this->end(); it++){
        (*it)->Draw();
    }
}
void cSceneManager::SetCamera(cCamera* Camera) {
    this->pCamera = Camera;
}
cCamera* cSceneManager::GetCamera() const {
    return pCamera;
}

void cSceneManager::Init(cCamera* Camera){
    this->pCamera = Camera;
    for(list<cScene*>::iterator it = this->begin(); it!=this->end(); it++){
        (*it)->Init(Camera);
    }
}
